export const useLanguage = (emberbox: any) => {
  // geojson显示单元
  const chinese = () => {
    if (emberbox.current === null) return;
    emberbox.current.language.set("zh-Hans");
  };
  const franches = () => {
    if (emberbox.current === null) return;
    emberbox.current.language.set("fr");
  };
  const english = () => {
    if (emberbox.current === null) return;
    emberbox.current.language.set("en");
  };
  return {
    chinese,
    english,
    franches,
  };
};
